Ext.define('extjs6test.view.core.JurisdictionGrid', {
    extend: 'extjs6test.view.base.BaseGrid',
    alias: 'widget.jurisgrid',
    forceFit: true,
    initComponent: function () {
        Ext.apply(this, {
            store: Ext.create('extjs6test.store.Jurisdiction'),
            columns: [
                {text: 'JuriCode', dataIndex: 'juriCode'},
                {text: 'JuriName', dataIndex: 'juriName'},
                {text: 'JuriLevel', dataIndex: 'juriLevel'},
                {text: 'ParentJuriName', dataIndex: 'parentJuri.juriName'}
            ]
        });
        this.callParent(arguments);
    }
});
